package com.sleep.service.impl;

import com.sleep.dao.IUserDeviceDao;
import com.sleep.model.UserDeviceInfoEntity;
import com.sleep.service.IUserDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * Created by William on 2017/4/17.
 */

@Service
public class UserDeviceServiceImpl extends BaseServiceImpl <UserDeviceInfoEntity, Serializable> implements IUserDeviceService {

    @Autowired
    @Qualifier("userDeviceDaoImpl")
    private IUserDeviceDao userDeviceDao;

    @Override
    public List<UserDeviceInfoEntity> queryDevice(String userId) {
        return userDeviceDao.queryDevice(userId);
    }
}
